package com.cjx.AOP;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @author cjx
 * @date 2021/3/25 0025 - 18:39
 */
@Aspect
@Component
public class updateProxy {


    @Around(value = "execution(* com.cjx.Controller..*.update*(..))")
    public Object test(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {


        System.out.println(System.currentTimeMillis());

        Object proceed = proceedingJoinPoint.proceed();

        System.out.println(System.currentTimeMillis());
        return proceed;
    }
}
